import request from '@/utils/request'

// 查询goodsInfo列表
export function listGoodsInfo(query) {
  return request({
    url: '/goodsInfo/goodsInfo/list',
    method: 'get',
    params: query
  })
}

// 查询goodsInfo详细
export function getGoodsInfo(id) {
  return request({
    url: '/goodsInfo/goodsInfo/' + id,
    method: 'get'
  })
}

// 新增goodsInfo
export function addGoodsInfo(data) {
  return request({
    url: '/goodsInfo/goodsInfo',
    method: 'post',
    data: data
  })
}

// 修改goodsInfo
export function updateGoodsInfo(data) {
  return request({
    url: '/goodsInfo/goodsInfo',
    method: 'put',
    data: data
  })
}

// 删除goodsInfo
export function delGoodsInfo(id) {
  return request({
    url: '/goodsInfo/goodsInfo/' + id,
    method: 'delete'
  })
}

// 商品分类数据全部
export function getBrand() {
  return request({
    url: '/phoneBrand' ,
    method: 'get'
  })
}